package com.ruoyi.project.jiaqin.thrclasstrend.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 三级分类价格走势对象 thr_class_trend
 *
 * @author admin
 * @date 2021-01-09
 */
public class ThrClassTrend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 二级分类ID */
    @Excel(name = "二级分类ID")
    private String twoClassId;
    
    /** 三级分类ID */
    @Excel(name = "三级分类ID")
    private String thrClassId;

    private String thrClassName;

    public String getThrClassName() {
        return thrClassName;
    }

    public void setThrClassName(String thrClassName) {
        this.thrClassName = thrClassName;
    }

    /** 今日均价 */
    @Excel(name = "今日均价")
    private BigDecimal todayAvgPrice;

    /** 上日均价 */
    @Excel(name = "上日均价")
    private BigDecimal lastdayAvgPrice;

    /** 今日日期 */
    @Excel(name = "今日日期", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date day;

    /** 波动百分比(相较于前日) */
    @Excel(name = "波动百分比(相较于前日)")
    private BigDecimal wavePerc;

    /** 波动价格(相较于前日) */
    @Excel(name = "波动价格(相较于前日)")
    private BigDecimal wavePrice;

    /** 趋势状态 0-平稳1-上涨2-下跌 */
    @Excel(name = "趋势状态 0-平稳1-上涨2-下跌")
    private Integer status;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTwoClassId(String twoClassId)
    {
        this.twoClassId = twoClassId;
    }

    public String getTwoClassId()
    {
        return twoClassId;
    }
    public void setThrClassId(String thrClassId)
    {
        this.thrClassId = thrClassId;
    }

    public String getThrClassId()
    {
        return thrClassId;
    }
    public void setTodayAvgPrice(BigDecimal todayAvgPrice)
    {
        this.todayAvgPrice = todayAvgPrice;
    }

    public BigDecimal getTodayAvgPrice()
    {
        return todayAvgPrice;
    }
    public void setLastdayAvgPrice(BigDecimal lastdayAvgPrice)
    {
        this.lastdayAvgPrice = lastdayAvgPrice;
    }

    public BigDecimal getLastdayAvgPrice()
    {
        return lastdayAvgPrice;
    }
    public void setDay(Date day)
    {
        this.day = day;
    }

    public Date getDay()
    {
        return day;
    }
    public void setWavePerc(BigDecimal wavePerc)
    {
        this.wavePerc = wavePerc;
    }

    public BigDecimal getWavePerc()
    {
        return wavePerc;
    }
    public void setWavePrice(BigDecimal wavePrice)
    {
        this.wavePrice = wavePrice;
    }

    public BigDecimal getWavePrice()
    {
        return wavePrice;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("twoClassId", getTwoClassId())
            .append("thrClassId", getThrClassId())
            .append("todayAvgPrice", getTodayAvgPrice())
            .append("lastdayAvgPrice", getLastdayAvgPrice())
            .append("day", getDay())
            .append("wavePerc", getWavePerc())
            .append("wavePrice", getWavePrice())
            .append("status", getStatus())
            .toString();
    }
}
